<?php

namespace ORM\Dynasties2;

use Doctrine\ORM\Mapping as ORM;

/**
 * ORM\Dynasties2\Maillinks
 */
class Maillinks
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var integer $toUser
     */
    private $toUser;

    /**
     * @var smallint $isRead
     */
    private $isRead;

    /**
     * @var ORM\Dynasties2\Mailmsgs
     */
    private $msgId;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set toUser
     *
     * @param integer $toUser
     * @return Maillinks
     */
    public function setToUser($toUser)
    {
        $this->toUser = $toUser;
        return $this;
    }

    /**
     * Get toUser
     *
     * @return integer 
     */
    public function getToUser()
    {
        return $this->toUser;
    }

    /**
     * Set isRead
     *
     * @param smallint $isRead
     * @return Maillinks
     */
    public function setIsRead($isRead)
    {
        $this->isRead = $isRead;
        return $this;
    }

    /**
     * Get isRead
     *
     * @return smallint 
     */
    public function getIsRead()
    {
        return $this->isRead;
    }

    /**
     * Set msgId
     *
     * @param ORM\Dynasties2\Mailmsgs $msgId
     * @return Maillinks
     */
    public function setMsgId(\ORM\Dynasties2\Mailmsgs $msgId = null)
    {
        $this->msgId = $msgId;
        return $this;
    }

    /**
     * Get msgId
     *
     * @return ORM\Dynasties2\Mailmsgs 
     */
    public function getMsgId()
    {
        return $this->msgId;
    }
}